feat: add module and chunk graph visualization to REPL#38
Merged
sapphi-red merged 10 commits intomainfrom Feb 17, 2026
Merged
Conversation
✅ Deploy Preview for rolldown-repl ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
…ops usage Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add panel to visualize input module and output chunk graphs
Add Mermaid-based module and chunk graph visualization
Feb 5, 2026
Member
|
@copilot we should have the arrows between the input modules. static imports should be a normal arrow and dynamic imports should be a dotted arrow. |
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Contributor
Author
Added module import relationships to the graph visualization. The implementation now uses a plugin in the The module graph now displays:
Commit: aeb4a33 |
…exclusion Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Copilot
AI
changed the title
Add Mermaid-based module and chunk graph visualization
Replace Mermaid CDN loading with npm package and dynamic imports
Feb 5, 2026
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Copilot
AI
changed the title
Replace Mermaid CDN loading with npm package and dynamic imports
Fix literal Feb 5, 2026
\n rendering in chunk graph node labels
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Copilot
AI
changed the title
Fix literal
Add notch-rect shape to Mermaid note nodes
Feb 5, 2026
\n rendering in chunk graph node labelsCo-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Copilot
AI
changed the title
Add notch-rect shape to Mermaid note nodes
Add Mermaid-based module and chunk graph visualization to REPL
Feb 5, 2026
Copilot
AI
changed the title
Add Mermaid-based module and chunk graph visualization to REPL
Add module and chunk graph visualization to REPL
Feb 5, 2026
sapphi-red
approved these changes
Feb 5, 2026
Member
Member
|
Merging so that I can use it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds Mermaid-based graph visualization to visualize module dependencies and chunk composition during bundling.
Implementation
Graph extraction via plugin
Components
GraphContainer.vue- Renders Mermaid flowcharts with Module/Chunk tabsOutputView.vue- Adds Output/Graph tab switchergraph-mermaid.ts- Generates Mermaid syntax from graph dataMermaid integration
mermaid@11.12.2) for code splittingnote@{ shape: notch-rect, label: "..." }<br/>tagsVisualization features
Dependencies
langium@3.3.1totrustPolicyExcludeinpnpm-workspace.yamlScreenshots
Module Graph:

Chunk Graph:

Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.